#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20250523.sql ./mysql/db
cp ../sql/ry_config_20250224.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../show-room-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy show-room-gateway "
cp ../show-room-gateway/target/show-room-gateway.jar ./showroom/gateway/jar

echo "begin copy show-room-auth "
cp ../show-room-auth/target/show-room-auth.jar ./showroom/auth/jar

echo "begin copy show-room-visual "
cp ../show-room-visual/show-room-monitor/target/show-room-visual-monitor.jar  ./showroom/visual/monitor/jar

echo "begin copy show-room-modules-system "
cp ../show-room-modules/show-room-system/target/show-room-modules-system.jar ./showroom/modules/system/jar

echo "begin copy show-room-modules-file "
cp ../show-room-modules/show-room-file/target/show-room-modules-file.jar ./showroom/modules/file/jar

echo "begin copy show-room-modules-job "
cp ../show-room-modules/show-room-job/target/show-room-modules-job.jar ./showroom/modules/job/jar

echo "begin copy show-room-modules-gen "
cp ../show-room-modules/show-room-gen/target/show-room-modules-gen.jar ./showroom/modules/gen/jar

